package Reflex;

public class StudentTest {
    public static void main(String[] args) throws ClassNotFoundException {
        Class c1= Student.class;////用类找class对象
        System.out.println(c1.getName());//全类名获得

        //Class.forName("Student");需要填入全类名

        Class c2=Class.forName("Reflex/Student.java");//用class方法通过路径找calss对象

        Student student=new Student();//用类对象找class对象
        Class c3=student.getClass();




    }
}
